Skip to content

chore(deps): update dependency typed-openapi to v2#135

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/typed-openapi-2.x
Open

chore(deps): update dependency typed-openapi to v2#135
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/typed-openapi-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 4, 2026

This PR contains the following updates:

Package Change Age Confidence
typed-openapi (source) ^0.5.0^2.0.0 age confidence

Release Notes

astahmer/typed-openapi (typed-openapi)

v2.2.4

Patch Changes
  • 5d58477: fix broken nullable in disriminated unions

v2.2.3

Compare Source

Patch Changes
  • c40f9ad: Fix recursive record type generation

v2.2.2

Compare Source

Patch Changes
  • b564cd5: chore(BREAKING): rm tanstack local withResponse option cause useMutation cant infer the generics passed at
    this point so it doesnt have any effect on the output type (it works at runtime but desynchronized with its typing)

    chore: rename TypedResponseError -> TypedStatusError (happens on expected error status code) to distinguish it better
    from TypedErrorResponse

v2.2.1

Compare Source

Patch Changes
  • e8526b5: fix: tanstack inference in some edge cases

v2.2.0

Compare Source

Minor Changes
  • 04a41a6: feat: allow specifying overrides on any request fix: infer/narrow response with multiple json media types
    fix: properly handle mutation errors while retaining genericity on output based on mutationFn withResponse: true/false
    feat: decodePathParams/encodeSearchParams/parseResponseData feat: allow passing overrides/withResponse even if there's
    no endpoint parameters

v2.1.2

Compare Source

Patch Changes
  • 057e156: Fix type inference on success calls when not using withResponse: true while having multiple responses (ex:
    one for status 200 and another or status 304) with one that has a resulting schema of unknown

v2.1.1

Compare Source

Patch Changes
  • 2923a0f: Fix responseHeaders generation by inlining the type instead of referencing it.

v2.1.0

Compare Source

Minor Changes
  • 213f6ee: fix: make a union of multiple responses on the same status code (due to different media types)

    refactor: remove Endpoint["response"] arbitrarly choosen "main" response in favor of listing all possible success code

    refactor: responseHeaders now uses a Record<StatusCode, Headers> instead of simply being the typed headers of the
    "main" response feat: TypedHeaders

    refactor: rename+export success/error interfaces

v2.0.2

Compare Source

Patch Changes
  • f1f0e89: Allow any response type with media type containing application + json

v2.0.1

Compare Source

Patch Changes
  • e1de70a: Fix Schemas namespace missing for schema refs within parameter arrays #​51
    #​51
  • 47243f1: Accept any response content type of '/' as successful response
    #​52
  • abbab94: fix: Wrong codegen for additionalProperties #​57 #​57
  • 8a4c6c9: - New CLI option allow generating a fetcher and a standalone API client file (matching the example in
    api-client.example.ts).
    • Output paths for both the TanStack Query client and default fetcher can now be absolute or relative.
    • The standalone API client filename is configurable (defaults to api.client.ts). -> This makes it easier to start
      using the generated API clients

v2.0.0

Compare Source

Major Changes
  • 8f1eaa5: Add comprehensive type-safe error handling and configurable status codes

    • Type-safe error handling: Added discriminated unions for API responses with SafeApiResponse and
      InferResponseByStatus types that distinguish between success and error responses based on HTTP status codes
    • TypedResponseError class: Introduced TypedResponseError that extends the native Error class to include typed
      response data for easier error handling
    • Expose successStatusCodes and errorStatusCodes arrays on the generated API client instance for runtime access
    • withResponse parameter: Enhanced API clients to optionally return both the parsed data and the original Response
      object for advanced use cases
    • throwOnStatusError option: Added throwOnStatusError option to automatically throw TypedResponseError for
      error status codes, simplifying error handling in async/await patterns, defaulting to true (unless withResponse
      is set to true)
    • TanStack Query integration: The above features are fully integrated into the TanStack Query client generator:
      • Advanced mutation options supporting withResponse and selectFn parameters
      • Automatic error type inference based on OpenAPI error schemas instead of generic Error type
      • Type-safe error handling with discriminated unions for mutations
      • Response-like error objects that extend Response with additional data property for consistency
    • Configurable status codes: Made success and error status codes fully configurable:
      • New --success-status-codes and --error-status-codes CLI options
      • GeneratorOptions now accepts successStatusCodes and errorStatusCodes arrays
      • Default error status codes cover comprehensive 4xx and 5xx ranges
    • Enhanced CLI options: Added new command-line options for better control:
      • --include-client to control whether to generate API client types and implementation
      • --include-client=false to only generate the schemas and endpoints
    • Enhanced types: expose SuccessStatusCode / ErrorStatusCode type and their matching runtime typed arrays
    • Comprehensive documentation: Added detailed examples and guides for error handling patterns

    This release significantly improves the type safety and flexibility of generated API clients, especially for error
    handling scenarios.

v1.5.1

Compare Source

Patch Changes
  • 4d21f2e: Allow transforming schema & endpoint names; automatically prevents generating reserved TS/JS keyords names

    Fix #​90

v1.5.0

Compare Source

Minor Changes
  • 734c5d0: Add response headers in endpoint types

v1.4.5

Compare Source

Patch Changes
  • 0749aff: closes #​85. Adds support for extended types with allOf.

v1.4.4

Compare Source

Patch Changes

v1.4.3

Compare Source

Patch Changes
  • fb0fe07: closes: #​79 by handling singleton enum of type number

v1.4.2

Compare Source

Patch Changes
  • 9f70b13: Ensure dir is created before generating files

v1.4.1

Compare Source

Patch Changes
  • f367a04: Treat boolean values as literal in enum

v1.4.0

Compare Source

Minor Changes
  • dad912c: feat: add build-and-test github workflow
  • 0440b2b: add ?: to get optional parameters instead of having to set those to undefined
  • a718a33: Add CLI option --schemas-only to allow generation of only the schema without endpoints and api client

v1.3.2

Compare Source

Patch Changes
  • ceb15f6: Export generateClientFiles fn (same used as in the CLI)

v1.3.1

Compare Source

Patch Changes
  • 86a384f: add mutation selectFn + endpoint type-only property in .mutation

v1.3.0

Compare Source

Minor Changes
  • 91b005f: add parenthesis to handle priority between union/intersection

    this fixes an issue where (A | B | C) & D would be ambiguous and could be interpreted as A | B | (C & D

v1.2.0

Compare Source

Minor Changes
  • ed15081: Rename .options to .queryOptions

v1.1.2

Compare Source

Patch Changes
  • 4846bc4: fix mutationOptions parameters typings

v1.1.1

Compare Source

Patch Changes
  • 73c1ef1: feat: mutationOptions + .mutation (if input is not available before)

v1.1.0

Compare Source

Minor Changes
  • f029e94: Fetcher is now expected to return a Response, so that the api client can have a .request method that returns
    the raw object

    all methods (get post etc) will be parsed using the overridable "parseResponse" api client fn property

  • c1b9dcb: fix: anyOf to ts

    #​31

Patch Changes
  • d7eda3d: rm AllEndpoints type
  • 2abc8b4: chore: export Fetcher type
  • 6dfbd19: fix: tanstack client output path
  • f66571d: chore: make "endpoint" a type-only property
  • 93bd157: better endpoint alias
  • da6af35: fix: unused QueryClient import

v1.0.1

Compare Source

Patch Changes
  • 4a909eb: Fix CLI & package.json by removing CJS usage

v1.0.0

Compare Source

Major Changes
Minor Changes

v0.10.1

Compare Source

Patch Changes
  • dd91027: Move changesets to devDeps

v0.10.0

Compare Source

Minor Changes
Patch Changes
  • 739e5b5: Add options to Method type in generateApiClient function as fix for
    #​55

v0.9.0

Compare Source

Minor Changes
  • b122616: Add requestFormat property to endpoint schema.

    • json
    • form-data
    • form-url
    • binary
    • text

v0.8.0

Compare Source

Minor Changes
  • d260cd4: Fix zod and yup runtime generated endpoint schema type errors due to long operationId

v0.7.0

Compare Source

Minor Changes
  • cf83e52: Add type cast in ApiClient methods to match the desired type

v0.6.0

Compare Source

Minor Changes
  • c5daa58: Upgraded codegen dependency to provide newer runtime validator output

    This is a BREAKING CHANGE for valibot/yup users


Configuration

📅 Schedule: Branch creation - "before 9am on monday" in timezone Europe/Amsterdam, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/typed-openapi-2.x branch 3 times, most recently from 380ae27 to 1d30589 Compare March 5, 2026 18:56
@renovate renovate bot force-pushed the renovate/typed-openapi-2.x branch from 1d30589 to 8a92650 Compare March 13, 2026 10:47
@renovate renovate bot force-pushed the renovate/typed-openapi-2.x branch from 8a92650 to fc16bfa Compare March 18, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants